<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
	<body>
		<h1 class="pagetitle">
			Customer Detail
		</h1>
		<div class="column1-unit">
					
			<table class="formtable">
				<tr>
					<td width=150>
						Customer ID
					</td>
					<td><s:property value="customer.id"/></td>
				</tr>
				<tr>
					<td>
						Customer Name
					</td>
					<td><s:property value="customer.name"/></td>
				</tr>
				<tr>
					<td>
						Customer remark
					</td>
					<td>
						<s:property value="customer.remark"/>
					</td>
				</tr>
			</table>
			
			<table class="formtable">
				<tr>
					<th width="100">
						PN ID
					</th>
					<th width="100">
						PN Name
					</th>
					<th>
						PN remark
					</th>
					<th width="100">
						operator
					</th>
				</tr>
			    <s:iterator value="customer.pnList">
				<tr>
					<td width="100">
						<s:property value="id"/>
					</td>
					<td>
						<s:property value="pn"/>
					</td>
					<td>
						<s:property value="remark"/>
					</td>
					<td>
						<a href="customer!deletePN.action?customer.id=${customer.id}&pnId=${id}">delete</a>
					</td>
				</tr>
				</s:iterator>
			</table>
			
				<a href="customer!inputPN.action?customer.id=${customer.id }">Add PN</a>
		</div>

	</body>
</html>